<template>
  <a-card>
    <h2 class="mb-2">自定义复制指令</h2>
    <div class="w-sm flex justify-between">
      <span>{{ content }}</span>
      <a-link v-copy="content">复制文本</a-link>
    </div>
  </a-card>
</template>

<script setup>
import { ref } from 'vue'

const content = ref('我就是你要复制的内容')
</script>

<style lang="scss" scoped>
</style>